<?php 
/* SVN FILE: $Id$ */
/* AdminLog Test cases generated on: 2009-05-19 23:05:43 : 1242791083*/
App::import('Model', 'AdminLog');

class AdminLogTestCase extends CakeTestCase {
	var $AdminLog = null;
	var $fixtures = array('app.admin_log', 'app.user');

	function startTest() {
		$this->AdminLog =& ClassRegistry::init('AdminLog');
	}

	function testAdminLogInstance() {
		$this->assertTrue(is_a($this->AdminLog, 'AdminLog'));
	}

	function testAdminLogFind() {
		$this->AdminLog->recursive = -1;
		$results = $this->AdminLog->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('AdminLog' => array(
			'id'  => 1,
			'log_time'  => '2009-05-19 23:44:43',
			'log_info'  => 'Lorem ipsum dolor sit amet',
			'ip_address'  => 'Lorem ipsum d',
			'user_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>